package cn.seaboot.admin.flake.dao;

import cn.seaboot.admin.flake.bean.FlakeParamMapping;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Dao
 * 参数字段映射T_FLAKE_PARAM_MAPPING
 * <p>
 *
 * @author Mr.css on 2018-6-20
 */
@Repository
public interface FlakeParamMappingDao {
    /**
     * 增
     *
     * @param flakeParamMapping pojo
     * @return affected rows
     */
    int insert(FlakeParamMapping flakeParamMapping);

    /**
     * 删
     *
     * @param id id
     * @return affected rows
     */
    int deleteById(String id);

    /**
     * 改
     *
     * @param flakeParamMapping pojo
     * @return affected rows
     */
    int updateSampleById(FlakeParamMapping flakeParamMapping);

    /**
     * 查
     *
     * @param id id
     * @return pojo
     */
    FlakeParamMapping selectById(String id);

    /**
     * 查列表
     *
     * @param parameterMap id
     * @return listMap
     */
    List<FlakeParamMapping> selectList(String parameterMap);
}
